import instance from "@/utils/request.js";

export const commonDownload = (params) => {
    return $axios({
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
        },
        url: '/common/download',
        method: 'get',
        params
    })
}

export const uploadBatch = (formData) => {
    return instance.post('/file/uploadList', formData, {
        headers: {
            'Content-Type': 'multipart/form-data',
        },
        params: {
            imageList: 'formData', // 将 formData 对象作为 imageList 请求参数传递给后端
        }
    });
};